﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Albon.Model;

namespace BLL
{
    public class ItemStyleBLL
    {
        DAL.ItemStyleDAL itemstyledal = new DAL.ItemStyleDAL();
        /// <summary>
        /// 添加一条订单项样式数据
        /// </summary>
        public bool addItemStyle(ItemStyle itemstyle)
        {
            return itemstyledal.addItemStyle(itemstyle);
        }

        /// <summary>
        ///获取一条ItemStyel数据 
        /// </summary>
        public DataTable getItemStyle(string orderitemid)
        {
           return itemstyledal.getItemStyle(orderitemid);
        }

        /// <summary>
        /// 添加订单项样式的备注及样式图片信息
        /// </summary>
        /// <param name="styleremark"></param>
        public void addRemark(StyleRemark styleremark)
        {
            itemstyledal.addRemark(styleremark);
        }
        /// <summary>
        /// 获取备注信息
        /// </summary>
        public DataTable getStyleRemark(string orderitemid,string styleid)
        {
            return itemstyledal.getStyleRemark(orderitemid, styleid);
        }
    }
}
